//
//  wordsUpAndDown.h
//  i18n
//
//  Created by Earus on 11/27/11.
//  Copyright (c) 2011 patrick.decaluwe@student.uclouvain.be. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface wordsUpAndDownViewController : UIViewController <NSXMLParserDelegate, UIAlertViewDelegate>
{
 @private
    NSMutableArray *wordList;
    NSMutableArray *meaningList;
    
    NSMutableArray *learnedList;
    
    BOOL shouldDismiss;
}

@property (nonatomic, retain) IBOutlet UILabel *quizWordLabel;
@property (nonatomic, retain) IBOutlet UILabel *prevWordLabel;
@property (nonatomic, retain) IBOutlet UITextView *prevWordDescText;

@property (nonatomic, retain) IBOutlet UIButton *upButton;
@property (nonatomic, retain) IBOutlet UIButton *downButton;

- (IBAction)touchHomeAction:(id)sender;
- (IBAction)touchUpAction:(id)sender;
- (IBAction)touchDownAction:(id)sender;

- (void)prepareWordsFromFile:(NSString*)path;
- (void)nextRound;
- (void)showNextRoundAnimation;

- (void)loadLearnedWords;
- (void)saveLearnedWords;
- (NSString*)getLearnedListFilePath;

- (BOOL)isAvailableWord:(NSString*)word;

@end

